﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
      
  
   
   <script src="@Url.Content("~/Scripts/jquery-1.5.1.js")" type="text/javascript"></script>   
    <link href="@Url.Content("~/Content/themes/ui-lightness/jquery-ui-1.8.17.custom.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/Datetime.js")" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
    
 <script language="javascript">
     $(document).ready(function () {
         $('#FechaInicio').datepicker();
         $('#FechaFinal').datepicker();
     });
</script>
</head>
<body>
    <div class="page">
        <div id="header">
            <div id="title">
                <h1>COMUNIKRTE</h1>
            </div>
            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>
            <div id="menucontainer">
             <ul id="menu">
             <li>@Html.ActionLink("Inicio", "Index", "Home")</li>  
            @if (User.Identity.IsAuthenticated)
            {
                if(User.IsInRole("Administrador"))
                {
                                      
                          <li>@Html.ActionLink("Cursos", "Index", "Cursos")</li>
                        <li>@Html.ActionLink("Areas", "Index", "Areas")</li>
                          <li>@Html.ActionLink("Instructores", "Index", "Instructores")</li>
                        <li>@Html.ActionLink("Metodos Curso", "Index", "MetodosCurso")</li>
                          <li>@Html.ActionLink("Personal", "Index", "Personal")</li>
                        <li>@Html.ActionLink("Puestos", "Index", "Puestos")</li>
                        <li>@Html.ActionLink("Conocimientos", "Index", "Conocimientos")</li>
                        <li>@Html.ActionLink("Usuarios", "Index", "Usuarios")</li>
                    
                }

                if (User.IsInRole("Recursos Humanos"))
                {       
                     <li>@Html.ActionLink("Cursos", "Index", "Cursos")</li>
                     
                          <li>@Html.ActionLink("Instructores", "Index", "Instructores")</li>
                      
                          <li>@Html.ActionLink("Personal", "Index", "Personal")</li>
                        <li>@Html.ActionLink("Puestos", "Index", "Puestos")</li>
                        <li>@Html.ActionLink("Conocimientos", "Index", "Conocimientos")</li>                    
                    
                }
            }    
            </ul>
            </div>
        </div>
        <div id="main">
            @RenderBody()
        </div>
        <div id="footer">
        </div>
    </div>
</body>
</html>
